namespace Cmpp.Client.Cmpp3Message.Utility {
    internal class Singleton<T> where T : new() {
        public T Instance {
            get {
                return SingletonInternal.Instance;
            }
        }

        #region Nested type: SingletonInternal

        private class SingletonInternal {
            public static readonly T Instance;

            static SingletonInternal() {
                Instance = new T();
            }
        }

        #endregion
    }
}